


class LiftingDecorator():

    def FrontDeracotor(func):
       def liftingdecorator(self):
           LiftingDecorator().front()
           # 这是主体部分
           func(self)
           LiftingDecorator().after()
       return liftingdecorator


    def front(self):
        print('我添加在前面')

    def after(self):
        print('我添加在后面')








